package com.example.demo.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * @author: ak
 * @date: 2020/5/4 20:56
 * @description:
 */
@Mapper
@Repository
public interface CronMapper {
    @Select("select cron from cron limit 1")
    String getCron();

    @Update("update cron set cron=#{test} where cron_id=1")
    void updateCron(String tesk);
}
